﻿<UserControl x:Class="MediaAssistant.Controls.MovieSearchControl.MovieSearchControlView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:Controls="clr-namespace:MefBasic.Controls;assembly=MefBasic" mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="300" Width="220">
  <Controls:SearchBox Prompt="Search Movies"
                    HorizontalAlignment="Center" VerticalAlignment="Center" Width="200" Height="22" Mode="Regular"
                          ToolTip="Type to search movies" Command="{Binding SearchCommand}"
                          CommandParameter="{Binding Text, RelativeSource={RelativeSource Self}}">
    <Controls:SearchBox.ContextMenu>
      <ContextMenu>
        <MenuItem Header="Search Movies" IsChecked="{Binding CanSearchMovie}" IsCheckable="True"/>
        <MenuItem Header="Search Directors" IsChecked="{Binding CanSearchDirectors}" IsCheckable="True"/>
        <MenuItem Header="Search Writes" IsChecked="{Binding CanSearchWriters}" IsCheckable="True"/>
        <MenuItem Header="Search Stars" IsChecked="{Binding CanSearchActors}" IsCheckable="True"/>
        <MenuItem Header="Search Genres" IsChecked="{Binding CanSearchGenres}" IsCheckable="True"/>
      </ContextMenu>
    </Controls:SearchBox.ContextMenu>
  </Controls:SearchBox>
</UserControl>
